#include "../http/http.hpp"

int main()
{
    Socket sock_client;
    sock_client.CreateClient(8080,"127.0.0.1");
    std::string req = "GET /hello HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n";

    while(1)
    {
        assert(sock_client.Send(req.c_str(), req.size()) != -1);
        char buf[1024] = {0};
        assert(sock_client.Recv(buf, 1023));
        DBG_LOG("[%s]", buf);
        break;
        sleep(3);
    }
    sock_client.Close();

    return 0;
}